package jianghongxue.service.impl;

import jianghongxue.dao.JHXDao;
import jianghongxue.entity.JHXEntity;
import jianghongxue.service.JHXService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
//1
@Service("jhxservice")
public class JHXServiceImpl implements JHXService {
    @Autowired
    JHXDao jhxDao;


    @Override
    public List<JHXEntity> queryPage(String name) {
        return jhxDao.queryPage(name);
    }

    @Override
    public List<JHXEntity> showAll() {
        return jhxDao.showAll();
    }
}
